from .abs_database import AbsDatabase


class SqlFactory(AbsDatabase):
    @staticmethod
    def mysql_factory(type='mysql'):
        if type == 'mysql':
            return Mysql()
        assert 0, "err sql type please check: %s" % type

    @staticmethod
    def sqlite_factory(type='sqlite3'):
        if type == 'sqlite3':
            return Sqlite3()
        assert 0, "err sqllite type please check: %s" % type


from .sql_factory import Mysql, Sqlite3
